package com.byxy.computer.student.service;

import java.util.List;
import java.util.UUID;

import org.springframework.stereotype.Repository;

import com.byxy.computer.student.entity.LessonMaterial;
import com.byxy.computer.student.utils.MaterialData;

@Repository
public class LessonMaterialDao {

	public List<LessonMaterial> findAll() {
		return MaterialData.lists;
	}

	public LessonMaterial save(LessonMaterial lm) {
		lm.setId(UUID.randomUUID().toString());
		MaterialData.lists.add(lm);
		return lm;
	}
}
